package projeto.controller;

import projeto.business.TurmaBusiness;
import projeto.controller.form.TurmaForm;
import projeto.domain.Turma;

public class TurmaController {
	
	TurmaBusiness turmaBusiness = new TurmaBusiness();
	
	public Turma novaTurma( final TurmaForm turmaForm ) {
		
		Turma turma = turmaForm.convertToTurma();
		
		turmaBusiness.novaTurma( turma );
		
		return turma;		
	}
	
	public Turma atualizarTurma( final TurmaForm turmaForm ) {
		
		Turma turma = turmaForm.convertToTurma();
		
		turmaBusiness.atualizarTurma( turma );
		
		return turma;
	}
	
}
